package com.hsogoo.ultraman;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsogoo.ultraman.service.ConfigServer;

/**
 * Created by za-huangsaigang on 2018/9/19.
 */
@Service
public class ConfigServerInitializer implements InitializingBean {

    @Autowired
    private ConfigServer defaultConfigServer;

    @Override
    public void afterPropertiesSet() throws Exception {
        defaultConfigServer.register();
    }
}
